# Add configuration variables to the environment.
# This added the variables in '/etc/conf.d/core',
# which include non-MiniMyth environment variables
# (e.g. PATH, LANG and DISPLAY).
. /etc/conf

if /usr/bin/test ! `/usr/bin/id -u -n` = 'minimyth' ; then
        # Give user a warning when starting X.
	alias xinit="/bin/echo -e '\nerror: application xinit must be run as user minimyth.\n' && /bin/false"
        # Give user a warning when starting X based basic applications.
	alias rxvt="/bin/echo -e '\nerror: application rxvt must be run as user minimyth.\n' && /bin/false"
	alias x11vnc="/bin/echo -e '\nerror: application x11vnc must be run as user minimyth.\n' && /bin/false"
	alias xscreensaver="/bin/echo -e '\nerror: application xscreensaver must be run as user minimyth.\n' && /bin/false"
	alias xscreensaver-command="/bin/echo -e '\nerror: application xscreensaver-command must be run as user minimyth.\n' && /bin/false"
        # Give user a warning when starting X based multimedia applications.
	alias mplayer="/bin/echo -e '\nerror: application mplayer must be run as user minimyth.\n' && /bin/false"
	alias mplayer-stable="/bin/echo -e '\nerror: application mplayer-stable must be run as user minimyth.\n' && /bin/false"
	alias mplayer-svn="/bin/echo -e '\nerror: application mplayer-svn must be run as user minimyth.\n' && /bin/false"
	alias mythfrontend="/bin/echo -e '\nerror: application mythfrontend must be run as user minimyth.\n' && /bin/false"
	alias mythtv="/bin/echo -e '\nerror: application mythtv must be run as user minimyth.\n' && /bin/false"
	alias vlc="/bin/echo -e '\nerror: application vlc must be run as user minimyth.\n' && /bin/false"
	alias xine="/bin/echo -e '\nerror: application xine must be run as user minimyth.\n' && /bin/false"
        # Give user a warning when starting X based game emulators.
	alias fceu="/bin/echo -e '\nerror: application fceu must be run as user minimyth.\n' && /bin/false"
	alias jzintv="/bin/echo -e '\nerror: application jzintv must be run as user minimyth.\n' && /bin/false"
	alias mame="/bin/echo -e '\nerror: application mame must be run as user minimyth.\n' && /bin/false"
	alias mednafen="/bin/echo -e '\nerror: application mednafen must be run as user minimyth.\n' && /bin/false"
	alias stella="/bin/echo -e '\nerror: application stella must be run as user minimyth.\n' && /bin/false"
	alias VisualBoyAdvance="/bin/echo -e '\nerror: application VisualBoyAdvance must be run as user minimyth.\n' && /bin/false"
	alias zsnes="/bin/echo -e '\nerror: application zsnes must be run as user minimyth.\n' && /bin/false"
fi
